@echo off
echo 启动情绪分析服务...

REM 检查Python环境
python --version >nul 2>&1
if errorlevel 1 (
    echo 错误: 未找到Python，请先安装Python
    pause
    exit /b 1
)

REM 检查依赖
echo 检查依赖...
pip install snownlp flask flask-cors

REM 启动服务
echo 启动情绪分析服务在端口5001...
cd /d "%~dp0"
python emotion_service.py

pause
